<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsAnalizKpo" targetNamespace="http://tempuri.org/dsAnalizKpo.xsd" xmlns:mstns="http://tempuri.org/dsAnalizKpo.xsd" xmlns="http://tempuri.org/dsAnalizKpo.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="p301ConnString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="p301ConnString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.p301.Properties.Settings.GlobalReference.Default.p301ConnString" Provider="System.Data.SqlClient">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="taAnalizKpo" GeneratorDataComponentClassName="taAnalizKpo" Name="dtAnalizKpo" UserDataComponentName="taAnalizKpo">
            <MainSource>
              <DbSource ConnectionRef="p301ConnString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT     so_analiz_kpo.N_RAZDEL, so_analiz_kpo.C_SORT AS so_analiz_kpo_C_SORT, bo_analiz_kpo.D_ZAP, vRepAnalizKpoSpis.N_PERIOD, 
                      bo_analiz_kpo_.K_ANALIZ_KPO, bo_analiz_kpo_.K_RAZDEL, bo_analiz_kpo_.N_NAME, bo_analiz_kpo_.C_PROVED_DEN, 
                      bo_analiz_kpo_.C_NE_PROVED_DEN, bo_analiz_kpo_.C_PROVED_NOCH, bo_analiz_kpo_.C_NE_PROVED_NOCH, 
                      bo_analiz_kpo_.C_PROVED_HOLIDAY, bo_analiz_kpo_.C_NE_PROVED_HOLIDAY, bo_analiz_kpo_.C_SORT, 
                      bo_analiz_kpo_.C_PROVED_DEN + bo_analiz_kpo_.C_PROVED_NOCH + bo_analiz_kpo_.C_PROVED_HOLIDAY AS C_PROVED_ALL, 
                      bo_analiz_kpo_.C_NE_PROVED_DEN + bo_analiz_kpo_.C_NE_PROVED_NOCH + bo_analiz_kpo_.C_NE_PROVED_HOLIDAY AS C_NE_PROVED_ALL, 
                      bo_analiz_kpo_.C_PROVED_DEN + bo_analiz_kpo_.C_PROVED_NOCH + bo_analiz_kpo_.C_PROVED_HOLIDAY + bo_analiz_kpo_.C_NE_PROVED_DEN
                       + bo_analiz_kpo_.C_NE_PROVED_NOCH + bo_analiz_kpo_.C_NE_PROVED_HOLIDAY AS C_ALL
FROM         so_analiz_kpo INNER JOIN
                      bo_analiz_kpo_ ON so_analiz_kpo.K_RAZDEL = bo_analiz_kpo_.K_RAZDEL INNER JOIN
                      bo_analiz_kpo ON bo_analiz_kpo_.K_ANALIZ_KPO = bo_analiz_kpo.K_ANALIZ_KPO INNER JOIN
                      vRepAnalizKpoSpis ON bo_analiz_kpo.K_ANALIZ_KPO = vRepAnalizKpoSpis.K_ANALIZ_KPO
WHERE     (bo_analiz_kpo_.K_ANALIZ_KPO = @pK_ANALIZ_KPO)
ORDER BY bo_analiz_kpo_.C_SORT, bo_analiz_kpo_.N_NAME;      
</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="True" AutogeneratedName="pK_ANALIZ_KPO" ColumnName="K_ANALIZ_KPO" DataSourceName="p301.dbo.bo_analiz_kpo_" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@pK_ANALIZ_KPO" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="K_ANALIZ_KPO" SourceColumnNullMapping="False" SourceVersion="Current">
                      </Parameter>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="N_RAZDEL" DataSetColumn="N_RAZDEL" />
              <Mapping SourceColumn="D_ZAP" DataSetColumn="D_ZAP" />
              <Mapping SourceColumn="N_PERIOD" DataSetColumn="N_PERIOD" />
              <Mapping SourceColumn="K_ANALIZ_KPO" DataSetColumn="K_ANALIZ_KPO" />
              <Mapping SourceColumn="K_RAZDEL" DataSetColumn="K_RAZDEL" />
              <Mapping SourceColumn="N_NAME" DataSetColumn="N_NAME" />
              <Mapping SourceColumn="C_PROVED_DEN" DataSetColumn="C_PROVED_DEN" />
              <Mapping SourceColumn="C_NE_PROVED_DEN" DataSetColumn="C_NE_PROVED_DEN" />
              <Mapping SourceColumn="C_PROVED_NOCH" DataSetColumn="C_PROVED_NOCH" />
              <Mapping SourceColumn="C_NE_PROVED_NOCH" DataSetColumn="C_NE_PROVED_NOCH" />
              <Mapping SourceColumn="C_PROVED_HOLIDAY" DataSetColumn="C_PROVED_HOLIDAY" />
              <Mapping SourceColumn="C_NE_PROVED_HOLIDAY" DataSetColumn="C_NE_PROVED_HOLIDAY" />
              <Mapping SourceColumn="C_SORT" DataSetColumn="C_SORT" />
              <Mapping SourceColumn="C_PROVED_ALL" DataSetColumn="C_PROVED_ALL" />
              <Mapping SourceColumn="C_NE_PROVED_ALL" DataSetColumn="C_NE_PROVED_ALL" />
              <Mapping SourceColumn="C_ALL" DataSetColumn="C_ALL" />
              <Mapping SourceColumn="so_analiz_kpo_C_SORT" DataSetColumn="so_analiz_kpo_C_SORT" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsAnalizKpo" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dsAnalizKpo" msprop:Generator_DataSetName="dsAnalizKpo">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="dtAnalizKpo" msprop:Generator_UserTableName="dtAnalizKpo" msprop:Generator_RowDeletedName="dtAnalizKpoRowDeleted" msprop:Generator_RowChangedName="dtAnalizKpoRowChanged" msprop:Generator_RowClassName="dtAnalizKpoRow" msprop:Generator_RowChangingName="dtAnalizKpoRowChanging" msprop:Generator_RowEvArgName="dtAnalizKpoRowChangeEvent" msprop:Generator_RowEvHandlerName="dtAnalizKpoRowChangeEventHandler" msprop:Generator_TableClassName="dtAnalizKpoDataTable" msprop:Generator_TableVarName="tabledtAnalizKpo" msprop:Generator_RowDeletingName="dtAnalizKpoRowDeleting" msprop:Generator_TablePropName="dtAnalizKpo">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="N_RAZDEL" msprop:Generator_UserColumnName="N_RAZDEL" msprop:Generator_ColumnPropNameInRow="N_RAZDEL" msprop:Generator_ColumnVarNameInTable="columnN_RAZDEL" msprop:Generator_ColumnPropNameInTable="N_RAZDELColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="D_ZAP" msprop:Generator_UserColumnName="D_ZAP" msprop:Generator_ColumnPropNameInRow="D_ZAP" msprop:Generator_ColumnVarNameInTable="columnD_ZAP" msprop:Generator_ColumnPropNameInTable="D_ZAPColumn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="N_PERIOD" msdata:ReadOnly="true" msprop:Generator_UserColumnName="N_PERIOD" msprop:Generator_ColumnPropNameInRow="N_PERIOD" msprop:Generator_ColumnVarNameInTable="columnN_PERIOD" msprop:Generator_ColumnPropNameInTable="N_PERIODColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="K_ANALIZ_KPO" msprop:Generator_UserColumnName="K_ANALIZ_KPO" msprop:Generator_ColumnPropNameInRow="K_ANALIZ_KPO" msprop:Generator_ColumnVarNameInTable="columnK_ANALIZ_KPO" msprop:Generator_ColumnPropNameInTable="K_ANALIZ_KPOColumn" type="xs:int" minOccurs="0" />
              <xs:element name="K_RAZDEL" msprop:Generator_UserColumnName="K_RAZDEL" msprop:Generator_ColumnPropNameInRow="K_RAZDEL" msprop:Generator_ColumnVarNameInTable="columnK_RAZDEL" msprop:Generator_ColumnPropNameInTable="K_RAZDELColumn" type="xs:int" minOccurs="0" />
              <xs:element name="N_NAME" msprop:Generator_UserColumnName="N_NAME" msprop:Generator_ColumnPropNameInRow="N_NAME" msprop:Generator_ColumnVarNameInTable="columnN_NAME" msprop:Generator_ColumnPropNameInTable="N_NAMEColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="C_PROVED_DEN" msprop:Generator_UserColumnName="C_PROVED_DEN" msprop:Generator_ColumnPropNameInRow="C_PROVED_DEN" msprop:Generator_ColumnVarNameInTable="columnC_PROVED_DEN" msprop:Generator_ColumnPropNameInTable="C_PROVED_DENColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_NE_PROVED_DEN" msprop:Generator_UserColumnName="C_NE_PROVED_DEN" msprop:Generator_ColumnPropNameInRow="C_NE_PROVED_DEN" msprop:Generator_ColumnVarNameInTable="columnC_NE_PROVED_DEN" msprop:Generator_ColumnPropNameInTable="C_NE_PROVED_DENColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_PROVED_NOCH" msprop:Generator_UserColumnName="C_PROVED_NOCH" msprop:Generator_ColumnPropNameInRow="C_PROVED_NOCH" msprop:Generator_ColumnVarNameInTable="columnC_PROVED_NOCH" msprop:Generator_ColumnPropNameInTable="C_PROVED_NOCHColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_NE_PROVED_NOCH" msprop:Generator_UserColumnName="C_NE_PROVED_NOCH" msprop:Generator_ColumnPropNameInRow="C_NE_PROVED_NOCH" msprop:Generator_ColumnVarNameInTable="columnC_NE_PROVED_NOCH" msprop:Generator_ColumnPropNameInTable="C_NE_PROVED_NOCHColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_PROVED_HOLIDAY" msprop:Generator_UserColumnName="C_PROVED_HOLIDAY" msprop:Generator_ColumnPropNameInRow="C_PROVED_HOLIDAY" msprop:Generator_ColumnVarNameInTable="columnC_PROVED_HOLIDAY" msprop:Generator_ColumnPropNameInTable="C_PROVED_HOLIDAYColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_NE_PROVED_HOLIDAY" msprop:Generator_UserColumnName="C_NE_PROVED_HOLIDAY" msprop:Generator_ColumnPropNameInRow="C_NE_PROVED_HOLIDAY" msprop:Generator_ColumnVarNameInTable="columnC_NE_PROVED_HOLIDAY" msprop:Generator_ColumnPropNameInTable="C_NE_PROVED_HOLIDAYColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_SORT" msprop:Generator_UserColumnName="C_SORT" msprop:Generator_ColumnPropNameInRow="C_SORT" msprop:Generator_ColumnVarNameInTable="columnC_SORT" msprop:Generator_ColumnPropNameInTable="C_SORTColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_PROVED_ALL" msdata:ReadOnly="true" msprop:Generator_UserColumnName="C_PROVED_ALL" msprop:Generator_ColumnPropNameInRow="C_PROVED_ALL" msprop:Generator_ColumnVarNameInTable="columnC_PROVED_ALL" msprop:Generator_ColumnPropNameInTable="C_PROVED_ALLColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_NE_PROVED_ALL" msdata:ReadOnly="true" msprop:Generator_UserColumnName="C_NE_PROVED_ALL" msprop:Generator_ColumnPropNameInRow="C_NE_PROVED_ALL" msprop:Generator_ColumnVarNameInTable="columnC_NE_PROVED_ALL" msprop:Generator_ColumnPropNameInTable="C_NE_PROVED_ALLColumn" type="xs:int" minOccurs="0" />
              <xs:element name="C_ALL" msdata:ReadOnly="true" msprop:Generator_UserColumnName="C_ALL" msprop:Generator_ColumnPropNameInRow="C_ALL" msprop:Generator_ColumnVarNameInTable="columnC_ALL" msprop:Generator_ColumnPropNameInTable="C_ALLColumn" type="xs:int" minOccurs="0" />
              <xs:element name="so_analiz_kpo_C_SORT" msprop:Generator_UserColumnName="so_analiz_kpo_C_SORT" msprop:Generator_ColumnPropNameInRow="so_analiz_kpo_C_SORT" msprop:Generator_ColumnVarNameInTable="columnso_analiz_kpo_C_SORT" msprop:Generator_ColumnPropNameInTable="so_analiz_kpo_C_SORTColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>